<!doctype html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../css/mui.css" rel="stylesheet" />
		<link href="../../fonts/iconfont.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../../css/style.css"/>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">发布任务</h1>
		</header>
		<div class="mui-content">
			<div class="forget_from">
				<div class="mui-input-row">
					<label>平台：</label>
					<input type="text" value="抖音" disabled="disabled" id="info">
					<a class="sele_class" href="#pay"></a>
					<i class="iconfont icon-xiala"></i>
				</div>
				<div class="mui-input-row">
					<label>类型：</label>
					<input type="text" placeholder="请输入类型">
				</div>
				<div class="mui-input-row">
					<label>金额：</label>
					<input type="text" placeholder="请输入金额">
				</div>
				<div class="mui-input-row">
					<label>数量：</label>
					<input type="text" placeholder="请输入数量">
				</div>
				<div class="mui-input-row">
					<label>总价：</label>
					<input type="text" placeholder="请输入总价">
				</div>
				<div class="mui-input-row">
					<label>视频链接：</label>
					<input type="text" placeholder="请输入视频链接地址">
				</div>
			</div>
			<button type="button" class="mui-btn mui-btn-blue mui-btn-block mui_btn">确定</button>
			
			<!-- 充值类型 -->
			<div id="pay" class="mui-popover mui-popover-action mui-popover-bottom" style="display: block;">
				<ul class="mui-table-view font-pay">
					<li class="mui-table-view-cell ptys">
						<a href="#">快手</a>
					</li>
					<li class="mui-table-view-cell ptys">
						<a href="#">抖音</a>
					</li>
					<li class="mui-table-view-cell ptys">
						<a href="#">微视</a>
					</li>
					<li class="mui-table-view-cell ptys">
						<a href="#">小红书</a>
					</li>
					<li class="mui-table-view-cell ptys">
						<a href="#">美拍</a>
					</li>
					<li class="mui-table-view-cell ptys">
						<a href="#">西瓜</a>
					</li>
				</ul>
			</div>
		</div>
		<script src="../../js/jquery-1.11.3.min.js"></script>
		<script src="../../js/mui.js"></script>
		<script type="text/javascript">
			mui.init();
			// 选择
			var info = document.getElementById("info");
			mui('body').on('tap', '.mui-popover-action li.ptys>a', function() {
				var a = this,
					parent;
				//根据点击按钮，反推当前是哪个actionsheet
				for (parent = a.parentNode; parent != document.body; parent = parent.parentNode) {
					if (parent.classList.contains('mui-popover-action')) {
						console.log("OK, break!");
						break;
					}
				}
				//关闭actionsheet
				mui('#' + parent.id).popover('toggle');
				info.value = a.innerHTML;
			})
		</script>
	</body>

</html>
